package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户信息对象 users
 * 
 * @author mc_默言
 * @date 2024-07-04
 */
public class Users extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户唯一标识 */
    private Long userId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 用户登录名 */
    @Excel(name = "用户登录名")
    private String userAccount;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 年龄 */
    @Excel(name = "年龄")
    private Integer age;

    /** 用户电话 */
    @Excel(name = "用户电话")
    private String phone;

    /** 用户地址 */
    @Excel(name = "用户地址")
    private String address;

    /** 爱好，喜欢看的电影类型 */
    @Excel(name = "爱好，喜欢看的电影类型")
    private String hobby;

    /** 余额 */
    @Excel(name = "余额")
    private Double balance;

    /** 会员 */
    @Excel(name = "会员")
    private Integer member;

    /** 用户注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用户注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date userTime;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setUserAccount(String userAccount) 
    {
        this.userAccount = userAccount;
    }

    public String getUserAccount() 
    {
        return userAccount;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setAge(Integer age) 
    {
        this.age = age;
    }

    public Integer getAge() 
    {
        return age;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setHobby(String hobby) 
    {
        this.hobby = hobby;
    }

    public String getHobby() 
    {
        return hobby;
    }
    public void setBalance(Double balance) 
    {
        this.balance = balance;
    }

    public Double getBalance() 
    {
        return balance;
    }
    public void setMember(Integer member) 
    {
        this.member = member;
    }

    public Integer getMember() 
    {
        return member;
    }
    public void setUserTime(Date userTime) 
    {
        this.userTime = userTime;
    }

    public Date getUserTime() 
    {
        return userTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("userAccount", getUserAccount())
            .append("gender", getGender())
            .append("age", getAge())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("hobby", getHobby())
            .append("balance", getBalance())
            .append("member", getMember())
            .append("userTime", getUserTime())
            .toString();
    }
}
